package designPattern.AdapterPattern;

import designPattern.AdapterPattern.impl.BullCharger;

/**
 * @author jiangwz
 * @create 2019/10/30.
 */
public class Main {

    public static void main(String[] args){
        Phone phone = new Phone();
//        phone.charge(new BullCharger().provide220VPower());
//        phone.charge(new PhoneCharger().provide5VPower());

        phone.charge(new V220tov5Adaptor().change(new BullCharger()));
    }
}
